import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '@/views/Login'

const routes = [{
        path: '/',
        name: 'Login',
        component: Login
    },
    {
        path: '/main',
        name: 'main',
        component: () =>
            import ('../views/Main.vue'),
        children: [{
            path: '',
            component: () =>
                import ('../views/Index.vue')
        }]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router